package link.anyauto.fsmgr.biz.login;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

import link.anyauto.fsmgr.BR;
import link.anyauto.fsmgr.util.CompareUtil;

/**
 * Created by Administrator on 2016/7/16.
 */
public class LoginVM extends BaseObservable {

    private String account;
    private String pwd;

    @Bindable
    public String getAccount() {
        return account;
    }

    public void setAcount(String account) {
        if(!CompareUtil.equals(this.account, account)) {
            this.account = account;
            notifyPropertyChanged(BR.account);
        }
    }

    @Bindable
    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        if(!CompareUtil.equals(this.pwd, pwd)) {
            this.pwd = pwd;
            notifyPropertyChanged(BR.pwd);
        }
    }
}
